﻿using FreeSql.DataAnnotations;
using RS.BaseModel.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseAuthRole.DTO.User
{
    public class UUIUser : BaseEntity
    {
        public string Name { get; set; }
        [Column(StringLength = -1)]
        public string Avatar { get; set; }

        public string Phone { get; set; }

        public string JobNumber { get; set; }

        public string LoginName { get; set; }

        public string PassWord { get; set; }

        public string NickName { get; set; }

        public string Company { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string Department { get; set; }

        /// <summary>
        /// 职位
        /// </summary>
        public string JobTitle { get; set; }
        /// <summary>
        /// 职称
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 专业
        /// </summary>
        public string Profession { get; set; }
        /// <summary>
        /// 0禁用 1有效 
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 内部飞书Id
        /// </summary>
        public string? FeiShuUid { get; set; }

        #region 2023.1.12 新增字段

        public string Email { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string IdCardNo { get; set; }

        /// <summary>
        /// 国籍编码
        /// </summary>
        public string NationalityCode { get; set; }

        /// <summary>
        /// 国籍
        /// </summary>
        public string Nationality { get; set; }

        /// <summary>
        /// 性别 1男 2女 3未知
        /// </summary>
        public int Gender { get; set; }

        /// <summary>
        /// 1在职 0 否
        /// </summary>
        public int JobState { get; set; }

        /// <summary>
        /// 部门编号
        /// </summary>
        public string DepartmentId { get; set; }

        /// <summary>
        /// 最高学历
        /// </summary>
        public string TopQualifications { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        public string Nation { get; set; }
        /// <summary>
        /// 籍贯
        /// </summary>

        public string NationPlace { get; set; }

        /// <summary>
        /// 0实习 1正式 2劳务派遣 3退休返聘 4人力外包 5项目外包 6合作伙伴 7供应商 98供应商（间采） 99供应商（直采）
        /// </summary>
        public string EmployeeType{get;set;}

        /// <summary>
        /// 司龄
        /// </summary>
        public string CompanyAge { get; set; }
            
        /// <summary>
        /// 岗位名称
        /// </summary>
        public string PositionName { get; set; }

        /// <summary>
        /// 岗级
        /// </summary>
        public string JobLevel { get; set; }

        /// <summary>
        /// 员工属性
        /// </summary>
        public string StaffSystem { get; set; }
        /// <summary>
        /// 员工属性编码 1内部员工 2外部员工 3虚拟员工 4海外员工
        /// </summary>
        public string StaffSystemCode { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public string BirthDate { get; set; }

        #endregion

        #region 2024.1.15 新增字段
        /// <summary>
        /// 外协飞书Id
        /// </summary>
        public string? ExtFeiShuUid { get; set; }
        #endregion

        #region 2024.2.21 新增字段
        /// <summary>
        /// 公司编号
        /// </summary>
        public string? CompanyNo { get; set; }
        #endregion

        #region 2024.4.15 新增字段
        /// <summary>
        /// 直接上级工号
        /// </summary>
        public string? Managerid { get; set; }
        #endregion

        public UUIUser()
        {     
            Status = 1;    
        }

    }
}
